<h1><%= @post.title %></h1>

<p><%= @post.content %></p>

<div id="comments">
  <%= render @post.comments %>
</div>

<%= form_for [@post, @comment], :remote => true do |f| %>
    <%= f.text_area :content %>
    <br />
    <%= f.submit %>
<% end %>

<%= link_to 'Edit', edit_post_path(@post) %> |
<%= link_to 'Back', posts_path %>
